home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ShareWare OnLine 2
/
ShareWare OnLine Volume 2 (CMS Software)(1993).iso
/
comm1
/
dnload30.zip
/
BOARDSET.WAS
next >
Wrap
Text File
|
1993-04-18
|
2KB
|
60 lines
;****Board Setup Pro 2.0b (c) 1993, Michael Lee *******
;This script is used to setup BBS's that you will use with Download Pro 2.0
;All info must be entered correctly for the script to work properly.
;The settings are saved to a file called BOARD.INI and is saved in the directory
;you choose as your Prowin Path.
;************************************************
string bbs_name,bbs_number1,bbs_number2,bbs_number3,user,pasword
string prowin_path=$PWTASKPATH
integer status
proc main
loop:
dialogbox 67 20 196 189 2 "Download Pro BBS Setup"
text 22 46 39 8 left "BBS Name:"
text 17 64 49 8 left "BBS Number1:"
text 9 115 57 8 left "UserId for BBS:"
text 28 132 38 11 left "Password:"
editbox 66 45 114 13 bbs_name 25
editbox 66 62 114 13 bbs_number1
editbox 66 78 114 12 BBS_NUMBER2 25
editbox 66 96 114 13 BBS_NUMBER3 25
editbox 66 113 114 13 user 25
editbox 66 131 114 13 pasword 25
pushbutton 20 166 40 14 "&OK" normal
pushbutton 77 166 40 14 "&ADD" normal
pushbutton 133 166 40 14 "&CANCEL" cancel
text 17 80 49 8 left "BBS Number2:"
text 17 98 49 8 left "BBS Number3:"
text 53 9 97 26 left "Please enter information for each BBS you call. Then select OK or ADD!"
enddialog
status=$DIALOG
while status !=1
if Status==10
call write_to
exitwhile
endif
if status==11
call write_to
destroydlg
goto loop
endif
status=$DIALOG
endwhile
exit
endproc
;***
;This proc writes the information entered to Board.ini.
;***
proc write_to
profilerd
strfmt S1 "%s\board.ini" prowin_path
profilewr S1 bbs_name "bbs_number1" bbs_number1
profilewr S1 bbs_name "bbs_number2" bbs_number2
profilewr S1 bbs_name "bbs_number3" bbs_number3
profilewr S1 bbs_name "userid" user
profilewr S1 bbs_name "password" pasword
endproc